import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './assets/iconFont/iconfont.css'


//引入element UI
import elementUi from '@/elementUi/ui'
import 'element-ui/lib/theme-chalk/index.css';
import './assets/element-variables.scss'
Vue.use(elementUi)

import echarts from 'echarts'
Vue.prototype.$echarts=echarts

//定义时间过滤器
Vue.filter('dataFormate',function(val){
  var dt = new Date(val)
  var y = dt.getFullYear()
  var m = (dt.getMonth()+'').padStart(2,'0')
  var d = (dt.getDate()+'').padStart(2,'0')
  var hh = (dt.getHours()+'').padStart(2,'0')
  var mm = (dt.getMinutes()+'').padStart(2,'0')
  var ss = (dt.getSeconds()+'').padStart(2,'0')
  return `${y}-${m}-${d} ${hh}:${mm}:${ss}`
})

//导入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor)


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
